/*
 * @Descripttion: 
 * @version: 
 * @Author: kk
 * @Date: 2020-10-26 11:17:32
 * @LastEditors: kk
 * @LastEditTime: 2020-10-30 10:39:27
 */
import request from '@/utils/request'

export default{
    //admin获取对应的角色
    getRoles(){
        return request({
            url: `/acl/role/getRoles`,
            method: 'get'
        })
    },
    getRole(roleId){
        return request({
            url: `/acl/role/getRole/${roleId}`,
            method: 'get'
        })
    },
    getRoleList(){
        return request({
            url: `/acl/role/getRoleList`,
            method: 'get'
        })
    },
    removeRole(roleId){
        return request({
            url: `/acl/role/removeRole/${roleId}`,
            method: 'post'
        })
    },
    addRole(data){
        return request({
            url: `/acl/role/addRole`,
            method: 'post',
            data
        })
    }

}